require("script/frame/MainFrameInc")

gApp = 
{
	State = EGameState.eToLogin
}

function luaMain()
	loadScene("resource/Scene/Login", false)
	--[[
	--while true do
		if EGameState.eToLogin == gApp.State then
			--local login = require("script/LoginUI")
			--login:init()
			loadScene("resource/Scene/Login.scene", false)
			gApp.State = EGameState.eToGameMain
		elseif EGameState.eToGameMain == gApp.State then
			--loadScene("resource/Scene/GameApp.scene", true)
		elseif EGameState.eExitGame == gApp.State then
				
		end
	--end
	--]]
end

function OnTick()
	if gApp.State == EGameState.eExitGame then
		exitGame()
	end
end

